#pragma once

class XgW32Processes;

#include "XgW32Process.h"
#include <map>

class XgW32Processes
{
public:
	typedef std::map<DWORD, XgW32Process> XgW32ProcessesMap;
	typedef XgW32ProcessesMap::iterator Iterator;
	
public:
	XgW32Processes();
	~XgW32Processes();

public:
	bool refresh();
	bool clear();

	XgW32Process getProcess(DWORD pid);

public:
	XgW32Processes::Iterator begin();
	XgW32Processes::Iterator end();

private:
	XgW32ProcessesMap _map;
};
